package com.ruicar.afs.cloud.message.sendmessage;

import com.ruicar.afs.cloud.common.core.feign.AfsFeignFormSupport;
import com.ruicar.afs.cloud.common.core.feign.annotations.AfsFeignClear;
import com.ruicar.afs.cloud.message.sendmessage.dto.ReturnResultInfoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author jiaqi.guo
 * @version 1.0
 * @description: 对接短信接口
 * @created 2020/7/15 16:07
 */
@FeignClient(name = "message", url = "${com.greatwall.systems.message-system.url}", configuration = AfsFeignFormSupport.class)
public interface MessageApiFeign {
    /**
     * 短信接口
     *
     * @param str
     * @return
     */
    @PostMapping(value = "/api/msgOutSend",consumes = MediaType.APPLICATION_JSON_VALUE)
    @AfsFeignClear(true)
    String sentMessageInfo(@RequestBody String str);

}
